<?php

namespace Database\Factories;

use App\Models\Sell;
use Illuminate\Database\Eloquent\Factories\Factory;

class SellFactory extends Factory
{
  /**
   * The name of the factory's corresponding model.
   *
   * @var string
   */
  protected $model = Sell::class;

  /**
   * Define the model's default state.
   *
   * @return array
   */
  public function definition()
  {
    return [
      "id" => app('snowflake')->id(),
      "member_id" => $this->faker->numberBetween(7, 18),
      "seller_id" => 3,
      'realname' => $this->faker->name,
      'bank' => $this->faker->bank,
      'bankcard' => $this->faker->creditCardNumber,
      "coins" => $this->faker->numberBetween(10, 222),
      "fee" => $this->faker->numberBetween(10, 100),
      "tip" => $this->faker->numberBetween(10, 100),
      // "took_at" => $this->faker->dateTimeThisMonth,
      "done_at" => $this->faker->dateTimeThisMonth,
      "state" => $this->faker->numberBetween(1, 5),
    ];
  }
}
